<template>
  <div>
    <h1>SearchContainer</h1>
    <div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>
  </div>
</template>

<script>
import L from "leaflet";
import "@supermap/iclient-leaflet";
export default {
  mounted() {
    var url =
      "http://support.supermap.com.cn:8090/iserver/services/map-world/rest/maps/World";
    var map = L.map("map", {
      crs: L.CRS.EPSG4326,
      center: [0, 0],
      maxZoom: 18,
      zoom: 1
    });
    L.supermap.tiledMapLayer(url).addTo(map);
  }
};
</script>

<style lang="sass" scoped>

</style>
